<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <title>菜鸟教程(runoob.com)</title>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
  </head>
  <body>
    <iframe id="iframe1" src="http://127.0.0.1:5500/main/index1.html"></iframe>
    <p>接着点我!</p>

    <script>
      $(document).ready(function () {
        $('p').click(function () {
          var test = $('#iframe1');
          console.log('test:', JSON.stringify(test[0]));
        });
      });
    </script>
  </body>
</html>
